package com.yzpc.mapper;

import com.yzpc.entity.Script;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScriptMapper {
    public int insertScript(Script Script);
    public int updateScript(Script Script);
    public void deleteScriptById(Integer ScriptId);
    public void deleteScriptByName(String userName);

    public List<Script> findScriptList(Script Script);
    public Script findScriptById(Integer ScriptId);
    public List<Script> findScriptByName(String userName);

//    导入新脚本
    public void insertNewScript(Script script);
//    启动
    int updateScriptUsed(@Param("scriptId") Integer scriptId, @Param("used") int used);
}
